# -*- coding:utf-8 -*-
"""
@Time : 2020-12-17 12:27
@Author: langengel
@Des: 响应模型
"""
from typing import List

from pydantic import BaseModel, Field


class BaseResp(BaseModel):
    code: int = Field(description="状态码")
    message: str = Field(description="信息")


class Qrcode(BaseModel):
    web_code: str = Field(description="请求码")
    wechat_qrcode: str = Field(description="二维码base64")


class CreateQrcode(BaseResp):
    """获取微信授权码"""
    data: Qrcode
